package com.jinyi.wwdeng.ui

import android.content.Intent
import android.graphics.Color
import android.os.Bundle
import android.view.Gravity
import android.view.View
import com.jinyi.base.base.BaseActivity
import com.jinyi.base.utils.BarUtils
import com.jinyi.base.utils.HHLog
import com.jinyi.wwdeng.R
import com.jinyi.wwdeng.databinding.ActMainBinding
import com.jinyi.wwdeng.ui.wallpaper.view.WallpaperAct

class MainAct : BaseActivity() {

    lateinit var binding: ActMainBinding

    override fun getRootView(): View {
        binding = ActMainBinding.inflate(layoutInflater)
        return binding.root
    }

    override fun initView() {
        HHLog.e(">>>>>>>>>>>>>MainAct>>>>>>>>initView()")
        isInterceptBack(true)
        setBackExit(true)
        setTextTitle("首页")
        setTextTitleGravity(Gravity.CENTER)
        setTitleBarColor(Color.parseColor("#9fe76f"))
    }

    override fun initListener() {
        binding.btnWallpaper.setOnClickListener {
            showToast("跳转")
            startActivity(Intent(this, WallpaperAct::class.java))
        }
    }

    override fun initData() {
    }
}
